package main;

import java.lang.reflect.InvocationTargetException;

import org.apache.commons.beanutils.PropertyUtils;

import com.timesheet.server.common.models.TaskDTO;
import com.timesheet.server.core.mapper.A;
import com.timesheet.server.core.mapper.B;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		TaskDTO dto = new TaskDTO();
		dto.setTaskDescription("dfdfdssd");

		TaskDTO dto1 = new TaskDTO();

		A a = new A();
		a.setName("Binu");
		
		B b = new B();
		
		
		try {
			PropertyUtils.copyProperties(dto1, dto);
		} catch (IllegalAccessException e) {

			e.printStackTrace();
		} catch (InvocationTargetException e) {

			e.printStackTrace();
		} catch (NoSuchMethodException e) {

			e.printStackTrace();
		}

		System.out.println(dto1.getTaskDescription());
	}

}
